﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using NutriLeaf.Web.Core.Account;
using NutriLeaf.Web.Model;

namespace NutriLeaf.Services.Core.Friends
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IFriendService" in both code and config file together.
    [ServiceContract]
    public interface IFriendService
    {
        [OperationContract]
        List<int> GetFacebookFriendsID(string accessToken);
        [OperationContract]
        List<int> GetRegisteredFacebookFriendsID(string accessToken);
        [OperationContract]
        void SendFriendRequestToFacebookFriends(string accessToken);
        [OperationContract]
        void SendFriendRequest(int user1Id, int user2Id);
        [OperationContract]
        List<NutriLeaf.Web.Model.Friend> GetPendingFriendRequestRelationships(int userId);
        [OperationContract]
        List<UserData> GetPendingFriendRequestUserData(int userId);
        [OperationContract]
        List<NutriLeaf.Web.Model.Friend> GetAwaitingApprovalFriendRequestRelationships(int userId);
        [OperationContract]
        List<UserData> GetAwaitingApprovalRequestUserData(int userId);
        [OperationContract]
        void AcceptFriendRequest(int user1Id, int user2Id);
        [OperationContract]
        void AcceptFriendRequest(NutriLeaf.Web.Model.Friend friend);
        [OperationContract]
        void IgnoreFriendRequest(NutriLeaf.Web.Model.Friend friend);
        [OperationContract]
        void IgnoreFriendRequest(int user1Id, int user2Id);
        [OperationContract]
        NutriLeaf.Web.Model.Friend GetFriendRelationship(int user1Id, int user2Id);
        [OperationContract]
        void AcceptAllPendingRequests(List<NutriLeaf.Web.Model.Friend> friends);
        [OperationContract]
        void AcceptAllPendingRequests(int userId);
        [OperationContract]
        void IgnoreAllPendingRequests(int userId);
        [OperationContract]
        void IgnoreAllPendingRequests(List<NutriLeaf.Web.Model.Friend> friends);
        [OperationContract]
        bool FriendRequestExists(int User1Id, int User2Id);

    }
}
